<!DOCTYPE html>
<html lang="en" dir="ltr">
    <head>
        <meta charset="utf-8">
        <title>a</title>
    </head>
    <body>

    </body>
    <script type="text/javascript" src="//mirror.fe80.cn/jquery/3.6.1/jquery.min.js"></script>
    <script type="text/javascript" src="jquery.qrcode.min.js"></script>
    <script type="text/javascript" src="wii.js"></script>
    <script type="text/javascript">
        var arr = [];
        let a = wii.qrcodeMaker();
        let du = 0;
        for (var i = 0; i < 10; i++) {
            // setTimeout(function(){
                let a = wii.qrcodeMaker();
                if($.inArray(a,arr) != -1){
                    $('body').append(''+a+'重复<br>');
                    du++;
                }else{
                    $('body').append(''+a+'<br>');
                }
                arr.push(a);
            // },1000);
        }
        console.log('重复数量：'+du);
    </script>
</html>
